// pages/AlbumDetail/AlbumDetail.js
var app = getApp();
var appData = app.globalData;
Page({

  /**
   * 页面的初始数据
   */
  data: {
    inde:0,
    images: [],
    videosImg: '',
    videosUrl:''
  },


  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.setData({
      inde: options.index,
      images: appData.photos,
      videosUrl:options.src,
      videosImg:options.poster
    });
    console.log(options);

  },
  close:function(){
    wx.navigateBack()
  }
})
